package com.xiangban.yanglaodajie_platform.dao;

import com.xiangban.yanglaodajie_platform.entity.AccumulatePoints;
import com.xiangban.yanglaodajie_platform.entity.Orders;
import com.xiangban.yanglaodajie_platform.entity.dto.OrderNoDto;
import com.xiangban.yanglaodajie_platform.entity.vo.AccumulatePointsVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author Mr. MaYaYun
 * @Data 2021/3/29 16:21
 */
@Repository
public interface AccumulatePointsMapper {

    int saveAP(AccumulatePoints accumulatePoints);
    List<Orders> findOrdersByOrdersNumber(OrderNoDto orderNoDto);
    int updateAP(AccumulatePoints accumulatePoints );
    List<AccumulatePoints> getOrdersByOrdersList(AccumulatePoints accumulatePoints);

    AccumulatePoints getTransactionInfo(String orderNo);

    void updateTransaction(String orderNo);

    void saveLog(AccumulatePointsVo accumulatePointsVo);
    AccumulatePointsVo findLogById(AccumulatePointsVo accumulatePointsVo);
    void updateScore(AccumulatePointsVo accumulatePointsVo);
}
